import sys, os
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
import time, subprocess
from protocol.decorators import edp_service, instant, instant_req
from feat3 import get_feat3_app, vis_feat3_app
@edp_service
class Feat3:
    name = "feat3"
    desc = 'feature stage 3'
    tasks = [
        "get_feat3: (Str, Str) -> Str",
        "vis_feat3: Str -> Str"
    ]
    @instant
    def get_feat3(self, inputs):
        return get_feat3_app(inputs)
    def vis_feat3(self, inputs):
        return vis_feat3_app(inputs)
    
if __name__ == '__main__':
    Feat3.app.run(port=12000, debug=True)